package com.zwps.biz.api.model.dto.role;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Set;

@Schema(description = "新增角色")
@Getter
@Setter
@ToString
public class AddRolePermissionApiDTO {

    @Schema(description = "角色id")
    @NotBlank
    private String roleId;

    /**
     * 接口权限主键id
     */
    @Schema(description = "接口权限主键id")
    @NotEmpty
    private Set<String> permissionApiIds;

}
